package lcr;

import java.util.LinkedList;

public class Test0125 {
}

class CQueue {

    private LinkedList<Integer> queue = new LinkedList<>();
    public CQueue() {
        queue = new LinkedList<>();
    }

    public void appendTail(int value) {
        queue.add(value);
    }

    public int deleteHead() {
        if (queue.isEmpty()) return -1;
        return queue.pollFirst();
    }
}

